package hd.cls6;

import java.io.*;

/**
 * @author oldliu
 * @since 1.0
 */
public class ReaderTest {
    public static void main(String[] args) {
        //读一行，写一行
        try (Reader reader = new FileReader("f:/3.txt")) {
            int i = 0;
            while ((i = reader.read()) != -1) {
                System.out.print(i + "  ");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
